import { axiosGet, axiosPost } from "@/libs/http";

export function getLangFile({ params = {}, success, error }) {
  return axiosGet({
    url: "/get-langs-data",
    params,
  })
    .then((res) => success(res.data))
    .catch((err) => error(err));
}

export function setLangFile({ data = {}, success, error }) {
  return axiosPost({
    data,
    url: "/set-langs-data",
  })
    .then((res) => success(res.data))
    .catch((err) => error(err));
}
